package tw.com.softleader.autowiredTest.service;

import org.springframework.beans.factory.annotation.Autowired;

import tw.com.softleader.autowiredTest.model.Employee;

public class EmployeeAutowiredByTypeService {
	// Autowired annotation on variable/setters is equivalent to
	// autowire="byType"
	@Autowired
	private Employee employee;

	@Autowired
	public void setEmployee(Employee emp) {
		this.employee = emp;
	}

	public Employee getEmployee() {
		return this.employee;
	}
}
